{capture name=path}{l s='Contact'}{/capture}
{include file="$tpl_dir./breadcrumb.tpl"}
<h1>{l s='Customer Service'} - {if isset($customerThread) && $customerThread}{l s='Your reply'}{else}{l s='Contact us'}{/if}</h1>
{if isset($confirmation)}
	<p class="success"><img src="{$img_dir}icon/ok2.png" alt="" /> {l s='Your message has been successfully sent to our team.'}</p>
	<ul class="footer_links">
		<li><a href="{$link->getPageLink('index.php')}" title="{l s='Home'}"><img src="{$img_dir}icon/home.png" alt="{l s='Home'}" class="icon" /></a><a href="{$link->getPageLink('index.php')}" title="{l s='Home'}">{l s='Home'}</a></li>
	</ul>
{elseif isset($alreadySent)}
	<p class="success"><img src="{$img_dir}icon/ok2.png" alt="" /> {l s='Your message has already been sent.'}</p>
	<ul class="footer_links">
		<li><a href="{$link->getPageLink('index.php')}" title="{l s='Home'}"><img src="{$img_dir}icon/home.png" alt="{l s='Home'}" class="icon" /></a><a href="{$link->getPageLink('index.php')}" title="{l s='Home'}">{l s='Home'}</a></li>
	</ul>
{else}
	<p class="bold"><span style="font-weight: bold; text-decoration: underline;">{l s='Redemption Centre - Metro Sham Shui'}</span></p>
	<p class="bold"><a title="Goodwill Beauty Redemption Centre - Google Map" href="https://maps.google.com/maps?q=Metro+Sham+Shui,+226-242+Cheung+Sha+Wan+Road,+Hong+Kong&hl=en&ll=22.331117,114.161586&spn=0.001585,0.002411&sll=22.400004,114.192587&sspn=0.003169,0.004823&oq=me&hq=Metro+Sham+Shui,+226-242+Cheung+Sha+Wan+Road,+Hong+Kong&t=m&z=19" target="_blank"><img src="{$img_ps_dir}Google-Maps-small-Icon.jpg?{$time}" alt="{l s='Goodwill Beauty Redemption Centre - Google Map'}" class="icon"/></a> {l s='Adr'}: <span>{l s='Shop 45, 1F, Metro Sham Shui, 226-242 Cheung Sha Wan Road, Sham Shui Po, Kowloon - MTR Exit D2 (Opening Hours: Mon - Fri 16:30 - 19:30 Sat, Sun & Public Holidays 15:00 - 20:00)'}</span></p>
	<p></p>
	<!--iframe width="470" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl={if $lang_iso=='en'}en_US{elseif $lang_iso=='tw'}zh_HK{else}zh_CN{/if}&amp;geocode=&amp;q=Goodwill+Beauty+-+Redemption+Centre,+Metro+Sham+Shui,+Cheung+Sha+Wan+Rd,+Sham+Shui+Po,+Hong+Kong&amp;aq=0&amp;oq=goo&amp;sll=22.337319,114.1473&amp;sspn=0.002957,0.004823&amp;ie=UTF8&amp;hq=Goodwill+Beauty+-+Redemption+Centre,&amp;hnear=Metro+Sham+Shui,+226-242+Cheung+Sha+Wan+Rd,+Hong+Kong&amp;t=m&amp;ll=22.331271,114.161854&amp;spn=0.001737,0.002285&amp;z=18&amp;iwloc=A&amp;output=embed"></iframe-->
	<iframe width="470" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&amp;source=s_q&amp;hl={if $lang_iso=='en'}en_US{elseif $lang_iso=='tw'}zh_HK{else}zh_CN{/if}&amp;geocode=&amp;q=Metro+Sham+Shui,+Sham+Shui+Po,+Hong+Kong&amp;aq=&amp;sll=22.331269,114.161854&amp;sspn=0.006342,0.009645&amp;ie=UTF8&amp;hq=Metro+Sham+Shui,&amp;hnear=Sham+Shui+Po,+Hong+Kong&amp;t=m&amp;ll=22.331268,114.161854&amp;spn=0.000868,0.00114&amp;z=19&amp;iwloc=A&amp;output=embed"></iframe>
	<p></p>
	<p class="bold"><span style="font-weight: bold; text-decoration: underline;">{l s='Goodwill Resources Limited'}</span></p>
	<p class="bold"><a title="Goodwill Beauty - Google Map" href="https://maps.google.com/maps?q=Wah+Wai+Industrial+Centre,+38-40+Au+Pui+Wan+St,+Hong+Kong&hl=en&ll=22.400004,114.192587&spn=0.003169,0.004823&sll=22.352734,114.1277&sspn=0.811587,1.234589&oq=wa&hnear=Wah+Wai+Industrial+Centre,+38-40+Au+Pui+Wan+St,+Hong+Kong&t=m&z=18" target="_blank"><img src="{$img_ps_dir}Google-Maps-small-Icon.jpg?{$time}" alt="{l s='Goodwill Beauty - Google Map'}" class="icon"/></a> {l s='Adr'}: <span>{l s='Unit 1109 Wah Wai Centre, 38-40 Au Pui Wan Street, Fo Tan, Shatin, Hong Kong (Opening Hours: Mon - Fri 09:00 - 17:30)'}</span></p>
	<p class="bold"><img src="{$img_ps_dir}phone_icon.jpg" alt="{l s='Goodwill Beauty - Tel'}" title="{l s='Tel'}" class="icon"/> {l s='Tel'}: <span>+852-26092329</span></p>
	<p class="bold"><img src="{$img_ps_dir}fax_icon.jpg" alt="{l s='Goodwill Beauty - Fax'}" title="{l s='Fax'}" class="icon"/> {l s='Fax'}: <span>+852-26903841</span></p>
	<p class="bold"><img src="{$img_ps_dir}whatsapp_small.jpg" alt="{l s='Goodwill Beauty - WhatsApp'}" title="{l s='WhatsApp'}" class="icon"/> {l s='WhatsApp'}: <span>+852-91285402</span></p>
	<p class="bold"><img src="{$img_ps_dir}email_icon.jpg" alt="{l s='Goodwill Beauty - Email'}" title="{l s='Email'}" class="icon"/> {l s='Email'}: <a class="info_link" href="mailto:info@goodwillbeauty.com.hk">info@goodwillbeauty.com.hk</a></span></p>
	<p></p>
	<p class="bold">{l s='For questions about an order or for more information about our products, please send us an online message.'}</p>
	{include file="$tpl_dir./errors.tpl"}
	<form action="{$request_uri|escape:'htmlall':'UTF-8'}" method="post" class="std" enctype="multipart/form-data">
		<fieldset>
			<h3>{l s='Send a message'}</h3>
			<p class="select">
				<label for="id_contact">{l s='Subject Heading'}</label>
			{if isset($customerThread.id_contact)}
				{foreach from=$contacts item=contact}
					{if $contact.id_contact == $customerThread.id_contact}
						<input type="text" id="contact_name" name="contact_name" value="{$contact.name|escape:'htmlall':'UTF-8'}" readonly="readonly" />
						<input type="hidden" name="id_contact" value="{$contact.id_contact}" />
					{/if}
				{/foreach}
			</p>
			{else}
				<select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')">
					<option value="0">{l s='-- Choose --'}</option>
				{foreach from=$contacts item=contact}
					<option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option>
				{/foreach}
				</select>
			</p>
			<!-- Modified on 20120219 remove descriptions -->
			<!--p id="desc_contact0" class="desc_contact">&nbsp;</p-->
				{foreach from=$contacts item=contact}
					<!--p id="desc_contact{$contact.id_contact|intval}" class="desc_contact" style="display:none;">
						{$contact.description|escape:'htmlall':'UTF-8'}
					</p-->
				{/foreach}
			{/if}
			<p class="text">
				<label for="email">{l s='E-mail address'}</label>
				{if isset($customerThread.email)}
					<input type="text" id="email" name="from" value="{$customerThread.email}" readonly="readonly" />
				{else}
					<input type="text" id="email" name="from" value="{$email}" />
				{/if}
			</p>
		{if !$PS_CATALOG_MODE}
			{if isset($isLogged) && $isLogged}
				{if (!isset($customerThread.id_order) || $customerThread.id_order > 0)}
				<p class="text">
					<label for="id_order">{l s='Order ID'}</label>
					{if !isset($customerThread.id_order) && isset($isLogged) && $isLogged == 1}
						<select name="id_order" ><option value="0">{l s='-- Choose --'}</option>{$orderList}</select>
					{elseif !isset($customerThread.id_order) && !isset($isLogged)}
						<input type="text" name="id_order" id="id_order" value="{if isset($customerThread.id_order) && $customerThread.id_order > 0}{$customerThread.id_order|intval}{else}{if isset($smarty.post.id_order)}{$smarty.post.id_order|intval}{/if}{/if}" />
					{elseif $customerThread.id_order > 0}
						<input type="text" name="id_order" id="id_order" value="{$customerThread.id_order|intval}" readonly="readonly" />
					{/if}
				</p>
				{/if}
			{/if}
			{if isset($isLogged) && $isLogged}
			<p class="select">
			<label for="id_product">{l s='Product'}</label>
				{if !isset($customerThread.id_product)}
					<select name="id_product"><option value="0">{l s='-- Choose --'}</option>{$orderedProductList}</select>
				{elseif $customerThread.id_product > 0}
					<input type="text" name="id_product" id="id_product" value="{$customerThread.id_product|intval}" readonly="readonly" />
				{/if}
			</p>
			{/if}
		{/if}
		{if $fileupload == 1}
			<p class="text file_input">
			<label for="fileUpload">{l s='Attach File'}</label>
				<input type="hidden" name="MAX_FILE_SIZE" value="2000000" />
				<input type="file" name="fileUpload" id="fileUpload" />
			</p>
		{/if}
		<p class="textarea">
			<label for="message">{l s='Message'}</label>
			 <textarea id="message" name="message" rows="15" cols="20">{if isset($message)}{$message|escape:'htmlall':'UTF-8'|stripslashes}{/if}</textarea>
		</p>
		<p class="text">
			<label for="securityKey">{l s='Security Key'}</label>
			<input type="text" name="staf_skey" style="width: 40px;" maxlength="5" />
			&nbsp;&nbsp;<img id="securitykey_img" src="{$modules_dir}sendtoafriend/createsecureimage.inc.php?rnd={$staf_rnd}&cl={$staf_codelen}&type=1" align="absmiddle" style="border:solid 1px #003C74;" width="70" height="20" />
			<input type="hidden" name="staf_rnd" value="{$staf_rnd}">
		</p>
		<p class="submit">
			<input type="submit" name="submitMessage" id="submitMessage" value="{l s='Send'}" class="button_large" />
		</p>
	</fieldset>
</form>
{/if}